﻿using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
/// <summary>
/// 角色建造者
/// </summary>
public abstract class ICharacterBuilder
{
    protected ICharacter mCharacter;
    protected System.Type mT;
    protected WeaponType mWeaponType;
    protected Vector3 mSpawnPosition;
    protected int mLv;

    protected string mPrefabName = "";
    public ICharacterBuilder( ICharacter character, System.Type t, WeaponType weaponType, Vector3 spawnPosition, int lv)
    {
        mCharacter = character;
        mT = t;
        mWeaponType = weaponType;
        mSpawnPosition = spawnPosition;
        mLv = lv;
    }
    
    // 添加属性
    public abstract void AddCharacterAttr();
    
    // 加载模型
    public abstract void AddGameObject();
    
    // 加载武器
    public abstract void AddWeapon();
    
    // 更新角色系统
    public abstract void AddInCharacterSystem();
    
    // 返回结果
    public abstract ICharacter GetResult();
}
